namespace GGameFramework.Core.Pool
{
    /// <summary>
    /// 对象池生命周期接口
    /// </summary>
    public interface IPoolable : IReference
    {

        /// <summary>
        /// 从对象池取出时调用
        /// </summary>
        void OnSpawn();
        
        /// <summary>
        /// 回收到对象池时调用
        /// </summary>
        void OnRecycle();
    }
}